package com.xian.yoga.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * recruit
 * @author 
 */
public class Recruit implements Serializable {
    private Integer recruitId;

    private Integer studioId;

    private String studioName;

    private String recruitInfo;

    private BigDecimal salary;

    private static final long serialVersionUID = 1L;

    public Integer getRecruitId() {
        return recruitId;
    }

    public void setRecruitId(Integer recruitId) {
        this.recruitId = recruitId;
    }

    public Integer getStudioId() {
        return studioId;
    }

    public void setStudioId(Integer studioId) {
        this.studioId = studioId;
    }

    public String getStudioName() {
        return studioName;
    }

    public void setStudioName(String studioName) {
        this.studioName = studioName;
    }

    public String getRecruitInfo() {
        return recruitInfo;
    }

    public void setRecruitInfo(String recruitInfo) {
        this.recruitInfo = recruitInfo;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Recruit other = (Recruit) that;
        return (this.getRecruitId() == null ? other.getRecruitId() == null : this.getRecruitId().equals(other.getRecruitId()))
            && (this.getStudioId() == null ? other.getStudioId() == null : this.getStudioId().equals(other.getStudioId()))
            && (this.getStudioName() == null ? other.getStudioName() == null : this.getStudioName().equals(other.getStudioName()))
            && (this.getRecruitInfo() == null ? other.getRecruitInfo() == null : this.getRecruitInfo().equals(other.getRecruitInfo()))
            && (this.getSalary() == null ? other.getSalary() == null : this.getSalary().equals(other.getSalary()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecruitId() == null) ? 0 : getRecruitId().hashCode());
        result = prime * result + ((getStudioId() == null) ? 0 : getStudioId().hashCode());
        result = prime * result + ((getStudioName() == null) ? 0 : getStudioName().hashCode());
        result = prime * result + ((getRecruitInfo() == null) ? 0 : getRecruitInfo().hashCode());
        result = prime * result + ((getSalary() == null) ? 0 : getSalary().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recruitId=").append(recruitId);
        sb.append(", studioId=").append(studioId);
        sb.append(", studioName=").append(studioName);
        sb.append(", recruitInfo=").append(recruitInfo);
        sb.append(", salary=").append(salary);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}